package com.studyhub.api.problem.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 回答创建DTO
 * 
 * @author StudyHub Team
 */
@Data
@Schema(name = "AnswerCreateDTO", description = "回答创建请求")
public class AnswerCreateDTO {

    @NotNull(message = "问题ID不能为空")
    @Schema(description = "问题ID")
    private Long problemId;

    @NotBlank(message = "回答内容不能为空")
    @Schema(description = "回答内容")
    private String content;
}
